//
//  NSString+Utility.h
//  CraneMachine
//
//  Created by ice on 2017/10/31.
//  Copyright © 2017年 ICE. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Utility)

- (NSString *)md5;
- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;
//获取文字子节数
-(NSUInteger)textLength;
//从字符串中截取指定字节数
- (NSString *)subStringByByteWithIndex:(NSInteger)index;
@end
